package com.ios.common.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * IosBizBillVoucherDetail entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ios_biz_bill_voucher_detail", catalog = "ios")
public class IosBizBillVoucherDetail implements java.io.Serializable {

	// Fields

	private Long billVoucherDetailId;
	private Long billVoucherId;
	private Long subject;
	private Long customerId;
	private Float borrowerMoney;
	private Float lenderMoney;
	private String remark;
	private String version;

	// Constructors

	/** default constructor */
	public IosBizBillVoucherDetail() {
	}

	/** minimal constructor */
	public IosBizBillVoucherDetail(Long billVoucherId) {
		this.billVoucherId = billVoucherId;
	}

	/** full constructor */
	public IosBizBillVoucherDetail(Long billVoucherId, Long subject,
			Long customerId, Float borrowerMoney, Float lenderMoney,
			String remark, String version) {
		this.billVoucherId = billVoucherId;
		this.subject = subject;
		this.customerId = customerId;
		this.borrowerMoney = borrowerMoney;
		this.lenderMoney = lenderMoney;
		this.remark = remark;
		this.version = version;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "native")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "bill_voucher_detail_id", unique = true, nullable = false)
	public Long getBillVoucherDetailId() {
		return this.billVoucherDetailId;
	}

	public void setBillVoucherDetailId(Long billVoucherDetailId) {
		this.billVoucherDetailId = billVoucherDetailId;
	}

	@Column(name = "bill_voucher_id", nullable = false)
	public Long getBillVoucherId() {
		return this.billVoucherId;
	}

	public void setBillVoucherId(Long billVoucherId) {
		this.billVoucherId = billVoucherId;
	}

	@Column(name = "subject")
	public Long getSubject() {
		return this.subject;
	}

	public void setSubject(Long subject) {
		this.subject = subject;
	}

	@Column(name = "customer_id")
	public Long getCustomerId() {
		return this.customerId;
	}

	public void setCustomerId(Long customerId) {
		this.customerId = customerId;
	}

	@Column(name = "borrower_money", precision = 12, scale = 0)
	public Float getBorrowerMoney() {
		return this.borrowerMoney;
	}

	public void setBorrowerMoney(Float borrowerMoney) {
		this.borrowerMoney = borrowerMoney;
	}

	@Column(name = "lender_money", precision = 12, scale = 0)
	public Float getLenderMoney() {
		return this.lenderMoney;
	}

	public void setLenderMoney(Float lenderMoney) {
		this.lenderMoney = lenderMoney;
	}

	@Column(name = "remark", length = 300)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "version", length = 10)
	public String getVersion() {
		return this.version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

}